/*首页跳转页面*/
public class ActivityNewRedirectPageController
{
     public String RecordTypeId
    {
        get{        
                return System.currentPageReference().getParameters().get('RecordType');     
           }  
        set;
    }
    public ActivityNewRedirectPageController(ApexPages.StandardController controller){}
    
    public PageReference RedirectAction()
    {
        //list<recordtype> rlist=new list<recordtype>();
       recordtype  rt=[select id,DeveloperName from recordtype where id=:RecordTypeId]; 
       if(rt.DeveloperName=='SSY')
       {
           pageReference pr = new pageReference('/apex/InitActivityForNTMKTList?RecordType='+RecordTypeId);     
           pr.setredirect(true);   
            return pr;
       }    
       if(rt.DeveloperName=='KA')
       {
           pageReference pr = new pageReference('/apex/KAInitActivityForNTMKTList?RecordType='+RecordTypeId+'&ActivityType=KA');     
           pr.setredirect(true);   
            return pr;
       }
     
       if(rt.DeveloperName=='Region_remainder')
       {
           pageReference pr = new pageReference('/apex/InitRegionRemainderActivity?RecordType='+RecordTypeId);     
           pr.setredirect(true);   
            return pr;
       }
       if(rt.DeveloperName=='Region_New')
       {
           pageReference pr = new pageReference('/apex/KAInitActivityForNTMKTList?RecordType='+RecordTypeId+'&ActivityType=Region');     
           pr.setredirect(true);   
            return pr;
       }
       return null;
    }
}